package com.entmanage.base.oa.mapper;

import java.util.List;
import com.entmanage.base.oa.domain.OaReimbursementApply;
import com.entmanage.base.oa.domain.OaReimbursementDetail;
import io.lettuce.core.dynamic.annotation.Param;

/**
 * OA报销申请主Mapper接口
 * 
 * @author lsq
 * @date 2025-09-25
 */
public interface OaReimbursementApplyMapper 
{
    /**
     * 查询OA报销申请主
     * 
     * @param id OA报销申请主主键
     * @return OA报销申请主
     */
    public OaReimbursementApply selectOaReimbursementApplyById(Long id);

    /**
     * 查询OA报销申请主列表
     * 
     * @param oaReimbursementApply OA报销申请主
     * @return OA报销申请主集合
     */
    public List<OaReimbursementApply> selectOaReimbursementApplyList(OaReimbursementApply oaReimbursementApply);

    /**
     * 新增OA报销申请主
     * 
     * @param oaReimbursementApply OA报销申请主
     * @return 结果
     */
    public int insertOaReimbursementApply(OaReimbursementApply oaReimbursementApply);

    /**
     * 修改OA报销申请主
     * 
     * @param oaReimbursementApply OA报销申请主
     * @return 结果
     */
    public int updateOaReimbursementApply(OaReimbursementApply oaReimbursementApply);

    /**
     * 删除OA报销申请主
     * 
     * @param id OA报销申请主主键
     * @return 结果
     */
    public int deleteOaReimbursementApplyById(Long id);

    /**
     * 批量删除OA报销申请主
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOaReimbursementApplyByIds(Long[] ids);

    /**
     * 批量删除OA报销申请-费用明细
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOaReimbursementDetailByApplyIds(Long[] ids);
    
    /**
     * 批量新增OA报销申请-费用明细
     * 
     * @param oaReimbursementDetailList OA报销申请-费用明细列表
     * @return 结果
     */
    public int batchOaReimbursementDetail(List<OaReimbursementDetail> oaReimbursementDetailList);
    

    /**
     * 通过OA报销申请主主键删除OA报销申请-费用明细信息
     * 
     * @param id OA报销申请主ID
     * @return 结果
     */
    public int deleteOaReimbursementDetailByApplyId(Long id);

    List<OaReimbursementApply> selectByApproverId(@Param("approverId") Long approverId);

    List<OaReimbursementApply> selectByCcId(@Param("ccId") Long currentUserId);
}
